package com.bjyhl.medical.main;

import android.graphics.Color;

import com.bjyhl.core.fragments.bottom.BaseBottomFragment;
import com.bjyhl.core.fragments.bottom.BottomItemFragment;
import com.bjyhl.core.fragments.bottom.BottomTabBean;
import com.bjyhl.core.fragments.bottom.BottomItemBuilder;
import com.bjyhl.medical.main.discover.DiscoverFragment;
import com.bjyhl.medical.main.hospital.HospitalFragment;
import com.bjyhl.medical.main.index.IndexFragment;
import com.bjyhl.medical.main.cart.ShopCartFragment;
import com.bjyhl.medical.main.news.NewsFragment;
import com.bjyhl.medical.main.personal.PersonalFragment;
import com.bjyhl.medical.main.recommend.RecommendFragment;
import com.bjyhl.medical.main.sort.SortFragment;
import com.bjyhl.medical.main.video.VideoFragment;
import com.bjyhl.medical.main.weijianwei.WeijianweiFragment;
import com.bjyhl.medical.main.yipuxuanjiao.YipuxuanjiaoFragment;

import java.util.LinkedHashMap;

/**
 * Created by Natalya on 2019/1/27 18:18
 * Note:
 */

public class EcBottomFragment extends BaseBottomFragment{

    @Override
    public LinkedHashMap<BottomTabBean, BottomItemFragment> setItems(BottomItemBuilder builder) {
        final LinkedHashMap<BottomTabBean, BottomItemFragment> items = new LinkedHashMap<>();

        // 推荐 智慧医院 卫健委 医普宣教 电影 新闻 生活服务 睡眠监控
//        items.put(new BottomTabBean("{icon-recommend}","推荐"), new IndexFragment());
        items.put(new BottomTabBean("{icon-recommend}","推荐"), new RecommendFragment());
        items.put(new BottomTabBean("{icon-hospital}","智慧医院"), new HospitalFragment());
        items.put(new BottomTabBean("{icon-guohui}","卫健委"), new WeijianweiFragment());
        items.put(new BottomTabBean("{icon-yipuxuanjiao}","医普宣教"), new YipuxuanjiaoFragment());
        items.put(new BottomTabBean("{icon-movie}","电影"), new VideoFragment());
        items.put(new BottomTabBean("{icon-news}","新闻"), new NewsFragment());
        items.put(new BottomTabBean("{icon-life}","生活服务"), new DiscoverFragment());
        items.put(new BottomTabBean("{icon-sleep}","睡眠监控"), new SortFragment());

//        items.put(new BottomTabBean("{icon-movie}","电影"), new ShopCartFragment());
//        items.put(new BottomTabBean("{icon-news}","新闻"), new NewsFragment());
//        items.put(new BottomTabBean("{icon-life}","生活服务"), new DiscoverFragment());
//        items.put(new BottomTabBean("{icon-sleep}","睡眠监控"), new SortFragment());
//        items.put(new BottomTabBean("{icon-movie}","电影"), new ShopCartFragment());
//        items.put(new BottomTabBean("{icon-news}","新闻"), new NewsFragment());
//        items.put(new BottomTabBean("{icon-life}","生活服务"), new DiscoverFragment());
//        items.put(new BottomTabBean("{icon-sleep}","睡眠监控"), new SortFragment());

//        items.put(new BottomTabBean("{fa-home}","主页"), new IndexFragment());
//        items.put(new BottomTabBean("{fa-sort}","分类"), new SortFragment());
//        items.put(new BottomTabBean("{fa-compass}","发现"), new DiscoverFragment());
//        items.put(new BottomTabBean("{fa-shopping-cart}","购物车"), new ShopCartFragment());
//        items.put(new BottomTabBean("{fa-user}","我的"), new PersonalFragment());
        return builder.addItems(items).build();
    }

    @Override
    public int setIndexFragment() {
        return 0;
    }

    @Override
    public int setClickColor() {
        return Color.parseColor("#ffff8800");
    }

}
